package cn.zhentao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单分配表
 * </p>
 *
 * @author mp
 * @since 2025-06-16
 */
@Getter
@Setter
@TableName("order_assignments")
public class OrderAssignments implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer orderId;

    private Integer deliverymanId;

    /**
     * 0-待确认 1-已接受 2-已拒绝
     */
    @TableField("`status`")
    private Byte status;

    private LocalDateTime assignedAt;
}
